<!--订单页-->
<?php
session_start();
include "item_table_tr.php";
if (!$_SESSION['login_user']){
    echo "<script>alert('请您先的登录');window.close();</script>";
}
?>
<link rel="stylesheet" href="../css/bootstrap.min.css">

<div class="container">
    <table class="table table-hover">
        <tr>
            <?php $url = $_GET['url'];
            if ($url == 1) {
                echo "<td colspan='3' style='text-align: center;border-right: #e8e8e8 solid 1px'><a href=\"item.php?url=0\" class=\"active\">已付款</a></td>
<td colspan='3'  style='text-align: center;'><a href=\"item.php?url=1\">已收货</a></td>";
            } elseif ($url == 0 || $url == "") {
                echo "<td colspan='3' style='text-align: center;border-right: #e8e8e8 solid 1px'><a href=\"item.php?url=0\" >已付款</a></td>
        <td colspan='3'  style='text-align: center;'><a href=\"item.php?url=1\" class=\"active\">已收货</a></td>";
            } ?>
        </tr>
        <tr class="active">
            <th >书名</th>
            <th>数量(件)</th>
            <th>单价(元)</th>
            <th>下单日期</th>
            <th>
                <?php $url = $_GET['url'];
                if ($url == 1) {
                    echo "确认收货日期";
                } elseif ($url == 0 || $url == "") {
                    echo "总价(元)";
                } ?>
            </th>
            <th>操作</th>
        </tr>
        <?php
        if ($url==1){
            hasRecord();
        }elseif($url==0||$url==""){
            hasPaid();
        }

        ?>
    </table>
</div>
